import http from "@/api/axios";

export const getListApi = (data: QuotationApproval.SearchParams) => {
  return http({
    method: "post",
    url: "/base/biz/orderShipmentQuotation/quotationApprovalPage",
    data
  });
};
// 获取标签页 各状态 数量
export const getPageStaticApi = (data: QuotationApproval.SearchParams) => {
  return http({
    method: "post",
    url: "/base/biz/orderShipmentQuotation/quotationApprovalPageCount",
    data
  });
};
// 详情
export const getDetailsApi = (data: { id: string; selectNext: boolean }) => {
  return http({
    method: "post",
    url: "/base/biz/orderShipmentQuotation/queryById",
    data
  });
};
// 审批
export const approvalApi = (data: QuotationApproval.ApprovalParams) => {
  return http({
    method: "post",
    url: "/base/biz/orderShipmentQuotation/businessApproval",
    data
  });
};

// 批量审批
export const batchApprovalApi = (data: Base.GeneraDataType) => {
  return http({
    method: "post",
    url: "/base/biz/orderShipmentQuotation/batchApproval",
    data
  });
};

// 批量导出
export const quotationApprovalExcelApi = (data: QuotationApproval.exportParams) => {
  return http({
    method: "post",
    url: "/export/biz/exportExcel/quotationApprovalExcel",
    data
  });
};
